home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6d 6f | 72 67 61 6e 2e 63 6f 6d |Path: mo|rgan.com|
|00000010| 21 75 73 65 6e 65 74 0a | 46 72 6f 6d 3a 20 4f 6c |!usenet.|From: Ol|
|00000020| 65 67 20 53 68 74 65 79 | 6e 62 75 6b 20 3c 6f 6c |eg Shtey|nbuk <ol|
|00000030| 65 67 40 6d 73 2e 63 6f | 6d 3e 0a 4e 65 77 73 67 |eg@ms.co|m>.Newsg|
|00000040| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 6c 61 6e 67 |roups: c|omp.lang|
|00000050| 2e 63 2b 2b 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |.c++.Sub|ject: Re|
|00000060| 3a 20 43 2b 2b 20 62 65 | 67 69 6e 6e 65 72 20 71 |: C++ be|ginner q|
|00000070| 75 65 73 69 6f 6e 20 6f | 6e 20 64 61 74 61 20 6d |uesion o|n data m|
|00000080| 65 6d 62 65 72 20 61 63 | 63 65 73 73 2e 0a 44 61 |ember ac|cess..Da|
|00000090| 74 65 3a 20 57 65 64 2c | 20 31 30 20 41 70 72 20 |te: Wed,| 10 Apr |
|000000a0| 31 39 39 36 20 31 37 3a | 30 37 3a 33 33 20 2d 30 |1996 17:|07:33 -0|
|000000b0| 34 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |400.Orga|nization|
|000000c0| 3a 20 4d 6f 72 67 61 6e | 20 53 74 61 6e 6c 65 79 |: Morgan| Stanley|
|000000d0| 20 26 20 43 6f 2e 2c 20 | 4e 65 77 20 59 6f 72 6b | & Co., |New York|
|000000e0| 2c 20 4e 59 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |, NY.Mes|sage-ID:|
|000000f0| 20 3c 33 31 36 43 32 33 | 31 35 2e 32 37 38 31 45 | <316C23|15.2781E|
|00000100| 34 39 34 40 6d 73 2e 63 | 6f 6d 3e 0a 52 65 66 65 |494@ms.c|om>.Refe|
|00000110| 72 65 6e 63 65 73 3a 20 | 3c 34 6b 67 62 37 36 24 |rences: |<4kgb76$|
|00000120| 72 33 73 40 48 4f 50 50 | 45 52 2e 41 43 4d 2e 4f |r3s@HOPP|ER.ACM.O|
|00000130| 52 47 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |RG>.NNTP|-Posting|
|00000140| 2d 48 6f 73 74 3a 20 73 | 61 69 74 34 33 32 2e 6d |-Host: s|ait432.m|
|00000150| 6f 72 67 61 6e 2e 63 6f | 6d 0a 4d 69 6d 65 2d 56 |organ.co|m.Mime-V|
|00000160| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|00000170| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|00000180| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 75 73 |lain; ch|arset=us|
|00000190| 2d 61 73 63 69 69 0a 43 | 6f 6e 74 65 6e 74 2d 54 |-ascii.C|ontent-T|
|000001a0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|000001b0| 3a 20 37 62 69 74 0a 58 | 2d 4d 61 69 6c 65 72 3a |: 7bit.X|-Mailer:|
|000001c0| 20 4d 6f 7a 69 6c 6c 61 | 20 32 2e 30 20 28 58 31 | Mozilla| 2.0 (X1|
|000001d0| 31 3b 20 49 3b 20 53 75 | 6e 4f 53 20 34 2e 31 2e |1; I; Su|nOS 4.1.|
|000001e0| 33 20 73 75 6e 34 6d 29 | 0a 54 6f 3a 20 4b 65 6e |3 sun4m)|.To: Ken|
|000001f0| 20 56 61 72 6e 20 3c 76 | 61 72 6e 6b 40 65 36 32 | Varn <v|arnk@e62|
|00000200| 2e 64 69 65 62 6f 6c 64 | 2e 63 6f 6d 3e 0a 0a 4b |.diebold|.com>..K|
|00000210| 65 6e 20 56 61 72 6e 20 | 77 72 6f 74 65 3a 0a 3e |en Varn |wrote:.>|
|00000220| 20 0a 3e 20 20 20 20 20 | 20 49 20 68 61 76 65 20 | .> | I have |
|00000230| 62 65 65 6e 20 73 74 72 | 75 67 67 6c 69 6e 67 20 |been str|uggling |
|00000240| 77 69 74 68 20 74 68 65 | 20 70 72 6f 70 65 72 20 |with the| proper |
|00000250| 77 61 79 20 74 6f 20 64 | 65 63 6c 61 72 65 20 61 |way to d|eclare a|
|00000260| 6e 64 20 61 63 63 65 73 | 73 20 64 61 74 61 0a 3e |nd acces|s data.>|
|00000270| 20 6d 65 6d 62 65 72 73 | 20 69 6e 20 6d 79 20 63 | members| in my c|
|00000280| 6c 61 73 73 65 73 2e 20 | 20 49 20 77 61 73 20 6f |lasses. | I was o|
|00000290| 6e 63 65 20 74 6f 6c 64 | 20 74 68 61 74 20 61 20 |nce told| that a |
|000002a0| 63 6c 61 73 73 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |class sh|ould not|
|000002b0| 20 61 6c 6c 6f 77 20 61 | 6e 79 0a 3e 20 64 61 74 | allow a|ny.> dat|
|000002c0| 61 20 6d 65 6d 62 65 72 | 73 20 74 6f 20 62 65 20 |a member|s to be |
|000002d0| 70 75 62 6c 69 63 20 61 | 6e 64 20 74 68 61 74 20 |public a|nd that |
|000002e0| 74 68 65 79 20 73 68 6f | 75 6c 64 20 6f 6e 6c 79 |they sho|uld only|
|000002f0| 20 62 65 20 61 63 63 65 | 73 73 65 64 20 76 69 61 | be acce|ssed via|
|00000300| 20 6d 65 6d 62 65 72 0a | 3e 20 66 75 6e 63 74 69 | member.|> functi|
|00000310| 6f 6e 73 2e 20 20 57 68 | 79 3f 20 20 49 20 6b 6e |ons. Wh|y? I kn|
|00000320| 6f 77 20 74 68 65 20 72 | 65 61 73 6f 6e 73 20 66 |ow the r|easons f|
|00000330| 6f 72 20 64 65 63 6c 61 | 72 69 6e 67 20 70 72 69 |or decla|ring pri|
|00000340| 76 61 74 65 20 64 61 74 | 61 2c 20 62 75 74 20 77 |vate dat|a, but w|
|00000350| 68 61 74 20 64 6f 0a 3e | 20 49 20 67 61 69 6e 20 |hat do.>| I gain |
|00000360| 69 66 20 61 6c 6c 20 49 | 20 61 6d 20 64 6f 69 6e |if all I| am doin|
|00000370| 67 20 69 73 20 70 72 6f | 76 69 64 69 6e 67 20 61 |g is pro|viding a|
|00000380| 20 6d 65 6d 62 65 72 20 | 66 75 6e 63 74 69 6f 6e | member |function|
|00000390| 20 74 6f 20 67 65 74 20 | 74 68 65 20 70 72 69 76 | to get |the priv|
|000003a0| 61 74 65 0a 3e 20 64 61 | 74 61 20 6f 72 20 73 65 |ate.> da|ta or se|
|000003b0| 74 20 74 68 65 20 70 72 | 69 76 61 74 65 20 64 61 |t the pr|ivate da|
|000003c0| 74 61 2e 20 20 69 2e 65 | 2e 20 77 68 79 20 63 61 |ta. i.e|. why ca|
|000003d0| 6c 6c 20 61 20 67 65 74 | 44 61 74 61 28 29 20 66 |ll a get|Data() f|
|000003e0| 75 6e 63 74 69 6f 6e 20 | 74 68 61 74 0a 3e 20 62 |unction |that.> b|
|000003f0| 61 73 69 63 61 6c 6c 79 | 20 6a 75 73 74 20 72 65 |asically| just re|
|00000400| 74 75 72 6e 73 20 74 68 | 65 20 70 72 69 76 61 74 |turns th|e privat|
|00000410| 65 20 64 61 74 61 20 6d | 65 6d 62 65 72 20 61 73 |e data m|ember as|
|00000420| 20 6f 70 70 6f 73 65 64 | 20 74 6f 20 6a 75 73 74 | opposed| to just|
|00000430| 20 64 65 63 6c 61 72 69 | 6e 67 0a 3e 20 74 68 65 | declari|ng.> the|
|00000440| 20 70 76 69 61 74 65 20 | 64 61 74 61 20 6d 65 6d | pviate |data mem|
|00000450| 62 65 72 20 61 73 20 70 | 75 62 6c 69 63 2e 0a 0a |ber as p|ublic...|
|00000460| 0a 6c 65 74 27 73 20 73 | 61 79 20 74 68 61 74 20 |.let's s|ay that |
|00000470| 79 6f 75 20 68 61 76 65 | 20 79 6f 75 72 20 70 72 |you have| your pr|
|00000480| 69 76 61 74 65 20 64 61 | 74 61 20 61 6e 64 20 61 |ivate da|ta and a|
|00000490| 6c 6c 20 63 61 6c 63 75 | 6c 61 74 69 6f 6e 73 20 |ll calcu|lations |
|000004a0| 69 6e 20 69 6e 63 68 65 | 73 0a 62 75 74 20 79 6f |in inche|s.but yo|
|000004b0| 75 20 77 61 6e 74 20 74 | 6f 20 73 65 6c 6c 20 79 |u want t|o sell y|
|000004c0| 6f 75 72 20 63 6c 61 73 | 73 20 69 6e 20 6d 65 74 |our clas|s in met|
|000004d0| 72 69 63 20 77 6f 72 6c | 64 2e 20 79 6f 75 20 63 |ric worl|d. you c|
|000004e0| 6f 75 6c 64 20 70 72 6f | 76 69 64 65 20 73 65 74 |ould pro|vide set|
|000004f0| 0a 6d 65 74 68 6f 64 20 | 74 68 61 74 20 74 61 6b |.method |that tak|
|00000500| 65 73 20 61 6e 20 61 72 | 67 75 6d 65 6e 74 20 69 |es an ar|gument i|
|00000510| 6e 20 63 65 6e 74 69 6d | 65 74 65 72 73 2c 20 63 |n centim|eters, c|
|00000520| 6f 6e 76 65 72 74 20 69 | 74 20 74 6f 20 69 6e 63 |onvert i|t to inc|
|00000530| 68 65 73 20 61 6e 64 0a | 73 65 74 20 69 74 3b 20 |hes and.|set it; |
|00000540| 61 6e 64 20 74 68 65 20 | 6f 70 70 6f 73 69 74 65 |and the |opposite|
|00000550| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 66 6f 72 20 | convers|ion for |
|00000560| 67 65 74 20 6d 65 74 68 | 6f 64 2e 20 61 6e 64 20 |get meth|od. and |
|00000570| 79 6f 75 20 64 6f 20 6e | 6f 74 20 6e 65 65 64 0a |you do n|ot need.|
|00000580| 74 6f 20 63 68 61 6e 67 | 65 20 79 6f 75 72 20 63 |to chang|e your c|
|00000590| 61 6c 63 75 6c 61 74 69 | 6f 6e 73 2e 0a 0a 6f 6c |alculati|ons...ol|
|000005a0| 65 67 0a | |eg. | |
+--------+-------------------------+-------------------------+--------+--------+